package com.enki.cigarettes.repository;

import com.enki.cigarettes.entity.OrderItemT;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.repository
 * @Name e-cigarettes-shop-api-module
 * @Description: TODO 订单类目数据层
 * @date 2018/9/29
 */
public interface OrderItemTRepository extends PagingAndSortingRepository<OrderItemT, String> {

    List<OrderItemT> findByOrderTId(String id);

    OrderItemT findOneById(String id);

    Page<OrderItemT> findAll(Specification specification, Pageable pageable);

}
